import 'package:url_launcher/url_launcher.dart';

class HLUrlLauncher {
  /*
  * 拨打电话
  * */
  static call(String phone) async {
    if (phone.isEmpty) {
      return;
    }
    Uri url = Uri(scheme: "tel", path: phone);
    if (await canLaunchUrl(url)) {
      await launchUrl(url);
    }
  }
}
